define(
    function (require) {
        var BaseFormModel = require('common/FormModel');
        var Data = require('./Data');
        var GlobalData = require('common/GlobalData');
        var m = require('moment');
        var u = require('underscore');

        function FormModel() {
            BaseFormModel.apply(this, arguments);
            var entityName = this.getUrlType();
            this.addData(new Data(entityName));
        }

        FormModel.prototype.prepare = function () {
            BaseFormModel.prototype.prepare.call(this);
            this.prepareTime(
                {
                    dateField: 'rktime'
                }
            );
        }



        FormModel.prototype.validateEntity = function (entity) {
            return BaseFormModel.prototype.validateEntity.apply(this, arguments);
        };

        FormModel.prototype.save = function(entity) {
            return BaseFormModel.prototype.save.apply(this, arguments);
        };

        require('er/util').inherits(FormModel, BaseFormModel);
        return FormModel;
    }
);
